package erp.education.server.beans.implementation.interceptors;

import java.util.ArrayList;
import java.util.List;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.reflect.MethodSignature;

import erp.education.client.common.BaseRequest;
import erp.education.server.beans.implementation.ResultResponse;
import erp.education.server.beans.implementation.ServiceObject;
import erp.education.server.beans.interfaces.user.transaction.ServiceObjectI;

 
public class ExceptionInterceptor  {

	public Object log(ProceedingJoinPoint jp) throws Throwable {
		 Object result=null;
		 BaseRequest request=null;
		 for(Object currentObject:jp.getArgs()){
			if(currentObject instanceof BaseRequest){
				 
				request=(BaseRequest)currentObject;
			} 
		 }
	 /*Before Rules To Be Implemented*/
			 result= jp.proceed();
	/*After Rules To Be Implemented*/	  
		  return result;
		 }
  
}
